package com.cskaoyan.controller.admin;

import com.cskaoyan.model.admin.vo.BaseRespVo;
import com.cskaoyan.model.admin.vo.BashboardVO;
import com.cskaoyan.service.admin.BashboardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Author: Zhuqi
 * @Date: 2021/11/29 19:06
 * @Description: 首页所显示的各种数量
 */
@RestController
public class BashboardController {
    @Autowired
    BashboardService bashboardService;

    @RequestMapping("admin/dashboard")
    public BaseRespVo dashboard() {
        BashboardVO data = bashboardService.dashboard();
        return BaseRespVo.ok(data);
    }
}
